package com.integration.test;

import com.integration.maven.service2controllerProcessor.annotation.Service2RestController;
import com.integration.test.a.ParamAnnotation;
import org.springframework.web.bind.annotation.*;

/**
 * @Author ckk
 * @Date 2020/12/24 10:32
 * @Description 功能描述:
 **/
// 条件判断 当前服务是user ，不需要userFeign
// @FeignClient

// 条件判断 当前服务是user ，需要 userController
//@Service2RestController(name = "order")
public interface OrderService {


    @PostMapping("/insertOrder")
    public UserDto insertOrder(
            @RequestBody UserDto userDto);


    @GetMapping("/getOne/{id}")
    public UserDto getOne(
            @PathVariable String id);


    public UserDto getUserOne(String id);

}
